import React, { Component } from 'react';
import {ThemeContext} from './createContext';

import Child from './child.jsx';


class View extends Component{
    constructor(props){
        super(props);
        this.state = {
            themes:{
                foreground: '#000000',
                background: '#eeeeee',
            }
        }
    }
    render(){
        return(
            <div>
            <ThemeContext.Provider value={this.state.themes}>
                <Child/>
            </ThemeContext.Provider>
            </div>
        )
    }
}
export default View;
